home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-21 | 9.4 KB | 425 lines | [TEXT/CWIE] |
- /*
- Copyright © 1993,1994 by Fabrizio Oddone
- ••• ••• ••• ••• ••• ••• ••• ••• ••• •••
- This source code is distributed as freeware: you can copy, exchange, modify this
- code as you wish. You may include this code in any kind of application: freeware,
- shareware, or commercial, provided that full credits are given.
- You may not sell or distribute this code for profit.
- */
- #include "FabLibResIDs.h"
-
- #define NumTextLines 3
-
- resource 'ALRT' (kALRT_REGCANNOTREPLACE, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGCANNOTREPLACE,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound2,
- /* [2] */
- OK, visible, sound2,
- /* [3] */
- OK, visible, sound2,
- /* [4] */
- OK, visible, sound2
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGCANNOTREPLACE, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "You cannot save over an existing document; "
- "please try again, renaming the document or saving elsewhere."
- }
- }
- };
-
- #define NumTextLines 6
-
- resource 'ALRT' (kALRT_REGSUCCESSSAVED, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGSUCCESSSAVED,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, silent,
- /* [2] */
- OK, visible, silent,
- /* [3] */
- OK, visible, silent,
- /* [4] */
- OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGSUCCESSSAVED, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "The document “^0” has been successfully saved. "
- "You may print this document with SimpleText or your favorite "
- "text editing application."
- }
- }
- };
-
- #define NumTextLines 5
-
- resource 'ALRT' (kALRT_REGDISKFULL, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGDISKFULL,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGDISKFULL, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "The document “^0” has not been successfully saved, "
- "because the disk is full. "
- "Try saving onto another disk."
- }
- }
- };
-
- #define NumTextLines 5
-
- resource 'ALRT' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGUNKNOWNWRITEERROR,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGUNKNOWNWRITEERROR, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "The document “^0” has not been successfully saved, "
- "because of an error ^1. "
- "Try saving onto another disk."
- }
- }
- };
-
- #define NumTextLines 2
-
- resource 'ALRT' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGCOULDNOTOPENFORWRITING,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGCOULDNOTOPENFORWRITING, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Could not open the document for writing. "
- "Try saving onto another disk."
- }
- }
- };
-
- #define NumTextLines 2
-
- resource 'ALRT' (kALRT_REGWEIRDCOULDNOTCREATE, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGWEIRDCOULDNOTCREATE,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGWEIRDCOULDNOTCREATE, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Could not create the document (error ^0). "
- }
- }
- };
-
- #define NumTextLines 3
-
- resource 'ALRT' (kALRT_WOWTHATMANYCOPIES, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_WOWTHATMANYCOPIES,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionParentWindowScreen
- };
-
- resource 'DITL' (kALRT_WOWTHATMANYCOPIES, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Wow! That many copies! "
- "Send one million dollars, and I’ll be a happy man."
- }
- }
- };
-
- #define NumTextLines 3
-
- resource 'ALRT' (kALRT_REGDISKFULLCOULDNOTCREATE, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGDISKFULLCOULDNOTCREATE,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGDISKFULLCOULDNOTCREATE, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Could not create the document: the disk is full (error ^0). "
- }
- }
- };
-
- #define NumTextLines 3
-
- resource 'ALRT' (kALRT_REGDISKLOCKEDCOULDNOTCREATE, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGDISKLOCKEDCOULDNOTCREATE,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGDISKLOCKEDCOULDNOTCREATE, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Could not create the document: the disk is locked (error ^0). "
- }
- }
- };
-
- #define NumTextLines 3
-
- resource 'ALRT' (kALRT_REGACCESSDENIEDCOULDNOTCREATE, purgeable) {
- {AlertTop, AlertLeft, AlertBottom, AlertRight},
- kALRT_REGACCESSDENIEDCOULDNOTCREATE,
- { /* array: 4 elements */
- /* [1] */
- OK, visible, sound1,
- /* [2] */
- OK, visible, sound1,
- /* [3] */
- OK, visible, sound1,
- /* [4] */
- OK, visible, sound1
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (kALRT_REGACCESSDENIEDCOULDNOTCREATE, purgeable) {
- { /* array DITLarray: 2 elements */
- /* [1] */
- {ButtonTop, ActionButtonLeft, ButtonBottom, ActionButtonRight},
- Button {
- enabled,
- "OK"
- },
- /* [2] */
- {TextTop, TextLeft, TextBottom, TextRight},
- StaticText {
- disabled,
- "Could not create the document: access denied (error ^0). "
- }
- }
- };
-
- resource 'STR ' (kSTR_RegPROMPT, purgeable) {
- "Save registration form as:"
- };
-
- resource 'STR ' (kSTR_RegDEFNAME, purgeable) {
- "Registration"
- };
-
- resource 'STR ' (kSTR_RegDECALLOWED, purgeable) {
- "0123456789\$7F"
- };
-
- resource 'STR#' (1100, purgeable) {
- {
- /* [1] ok */
- "To save the registration form in a text document, click here.",
- /* [2] cancel */
- "To cancel, click here.",
- /* [3] Name */
- "Enter your full name.",
- /* [4] Company */
- "Enter your company name, if applicable.",
- /* [5] Address */
- "Enter your address.",
- /* [6] City */
- "Enter your city.",
- /* [7] State */
- "Enter your state.",
- /* [8] ZIP */
- "Enter your ZIP code.",
- /* [9] Country */
- "Enter your country name.",
- /* [10] e-mail */
- "Enter your electronic mail addresses. This is important because you can obtain "
- "upgrades from me via e-mail. "
- "(i.e. Internet, America Online, Compuserve, AppleLink, MCI Mail, etc.)",
- /* [11] Phone */
- "Enter your phone number, if you wish.",
- /* [12] FAX */
- "Enter your fax phone number, if you wish.",
- /* [13] copies */
- MACRO_COPIES,
- /* [14] from */
- "Enter how you heard of this software, and how you obtained it. "
- "(i.e. a friend, a Mac User Group, a Bulletin Board System, a CD-ROM, "
- "a magazine, an Internet site, etc.)",
- /* [15] suggestions */
- "Enter your comments about this software. Let me know your suggestions, problems, "
- "anything you might think of.",
- /* [16] price */
- "Here appears the sum due for this software. The more copies you "
- "buy, the less you pay per copy.",
- }
- };
-
-